Skip to content

Conversation

@peterharperuk
Copy link
Contributor

Fixes #467

@kilograham kilograham modified the milestones: 2.1.0, 2.1.1 Dec 5, 2024
@peterharperuk peterharperuk removed this from the 2.1.1 milestone Feb 5, 2025
@kilograham kilograham self-requested a review February 13, 2025 17:01
@peterharperuk
Copy link
Contributor Author

Currently it just sends a small buffer. To make it more realistic it might be nice to send more data and maybe send and receive on different cores?

@kilograham kilograham added this to the 2.1.1 milestone Feb 13, 2025
kilograham
kilograham previously approved these changes Feb 13, 2025
Copy link
Contributor

@kilograham kilograham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good as is - it shows what to do

This is already handled by add_shared_irq_handler() and i think it is more confusing to have it here
Copy link
Contributor Author

@peterharperuk peterharperuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - I can't approve my own PR!

#define USE_DMA_FOR_TX 1

#define SERIAL_BAUD 921600
#define HARD_UART_INST uart1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity I just did some quick local compile-tests, and this code all still compiles if you replace

#define HARD_UART_INST uart1

with

#if !USE_PIO_FOR_RX || !USE_PIO_FOR_TX
#define HARD_UART_INST uart1
#endif

😉 (which perhaps makes it clearer that the "hard UART" isn't used at all when PIO is being used for both RX and TX?)

@kilograham kilograham merged commit b22ac95 into raspberrypi:develop Feb 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants